package com.dcits.agent;

import java.lang.instrument.Instrumentation;

/**
 * @className: Dcits4TsfAgent
 * @description:
 * @author: caoyangjie
 * @date: 2025/6/5
 **/
public class Dcits4TsfAgent {
    public static void premain(String agentArgs, Instrumentation inst) {
        System.out.println("Dcits4TsfAgent.premain()");
        AdviceInstall.install();
    }

    /**
     * 动态 attach 方式启动，运行此方法
     *
     * @param agentArgs
     * @param inst
     */
    public static void agentmain(String agentArgs, Instrumentation inst) {
        System.out.println("agentmain");
        AdviceInstall.install();
    }
}
